package com.jic.member.api.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.request.MemberFavoriteRestRequest;
import com.jic.member.response.MemberFavoriteRestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "jic-member",path = "/apiMyFavorite")
public interface MemberFavoriteManangeRestApi {

    @PostMapping("/editMyFavorite")
    RestResult<String> editMyFavorite(@RequestBody MemberFavoriteRestRequest memberFavoriteRestRequest);

    @PostMapping("/getFavoriteList")
    RestResult<PageResult<MemberFavoriteRestResponse>> getFavoriteList(@RequestBody MemberFavoriteRestRequest memberFavoriteRestRequest);

    @PostMapping("/queryFollowersByDeptId")
    RestResult queryFollowersByDeptId(@RequestBody MemberFavoriteRestRequest memberFavoriteRestRequest);

    @PostMapping("/queryFollowersByEntityId")
    Boolean queryFollowersByEntityId(@RequestBody MemberFavoriteRestRequest memberFavoriteRestRequest);

    @PostMapping("/countFollowersByDeptId")
    RestResult countFollowersByEntityId(@RequestBody MemberFavoriteRestRequest memberFavoriteRestRequest);
}
